x86: reintroduce read_unlock() optimization
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 13 Jul 2015 09:50:51 +0000 (11:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 Jul 2015 09:50:51 +0000 (11:50 +0200)
commit8f4fc2d2bc91349d5c63470d77289ded7a5be323
tree1481526eb274de2c62b03a2e091e3c85dbc81300
parent47b4d562b6a3441020fb6a7762603d1d3a74db27
x86: reintroduce read_unlock() optimization

Commit 902d1b5c310fb63b511f0b967cf5f32d3f605f3d (x86,arm: remove
asm/spinlock.h from all architectures) inadvertantly removed an
x86-specific optimization for read_unlock*().

Re-add asm/spinlock.h to allow architectures to provide an optmized
_raw_read_unlock() and make x86 provide the previous implementation.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
xen/include/asm-arm/spinlock.h [new file with mode: 0644]
xen/include/asm-x86/spinlock.h [new file with mode: 0644]
xen/include/xen/spinlock.h